/**
*****************************************************************************
 * DESC ：. 
 * Author : Junwei Zhang 
 * CREATEDATE ：2012-8-26 
 * MODIFYLIST ：       	Name 			 Date 			Reason/Contents
 * 				------------------------------------------------------ 
 * 				 	Junwei Zhang     2012-8-26		Created.
 ****************************************************************************
**/
package com.me.server;

import java.util.ArrayList;
import java.util.List;

/**
 * 
 * <br/> 下午7:41:52 2012-8-26
 * @Author <a href="mailto:mestudying@sina.com">Junwei Zhang</a><br/>
 **/
public class ProcessorManager {
	
	private List<MessageProcessor> processorList = null;
	
	public ProcessorManager(){
		this.processorList = new ArrayList<MessageProcessor>();
	}

	public void add(MessageProcessor processor) {
		this.processorList.add(processor);
	}

	
	public void run() {
		// TODO Auto-generated method stub
		for(MessageProcessor p : this.processorList){
			if(p.getMsgList().size() > 0){
				// 通知工作线程
			}else{
				
			}
		}
	}

}
